#pragma once
#include <QWidget>
// 前置声明，避免直接包含ui_main_page.h
namespace Ui {
class MainPage;
}
#include "admin_dialog.h"
#include "cabinet_collect_dialog.h"
#include "cabinet_return_dialog.h"
#include "cabinet_halfway_dialog.h"
#include "cabinet_longrent_dialog.h"

class MainPage : public QWidget
{
    Q_OBJECT
public:
    explicit MainPage(QWidget *parent = nullptr);

private:
    Ui::MainPage *ui;
    void setupConnections();
    void loadQrCode(); // 新增二维码加载函数
};